/*
package com.isoft.service.tableservice;


import com.isoft.dao.tabledao.DfmeAfidDao;
import com.isoft.entity.tableentity.dfme_afid.DfmeAfidMsg;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;



@Slf4j
@Service
public class DfmeAfidService {
    Timestamp timestamp = new Timestamp(System.currentTimeMillis());
    @Autowired
    private DfmeAfidDao dfmeAfidDao;
    @Transactional
    public int insertmsg(DfmeAfidMsg dfmeAfidMsg) throws ParseException {
        SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmss");
        Date date = formatter.parse(dfmeAfidMsg.getDfmeAfidMeta().getDdtm());
        Timestamp ddtm = new Timestamp(date.getTime());
        dfmeAfidDao.insertMeta( timestamp,ddtm, dfmeAfidMsg.getDfmeAfidMeta());
        return dfmeAfidDao.insertDflt(dfmeAfidMsg.getDfmeAfidMeta().getSeqn(),timestamp, dfmeAfidMsg.getDflt());
    }
}
*/
